Imports System.Text
Imports MyFramework

Public Class Complete
    Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub
    Protected WithEvents Form1 As System.Web.UI.HtmlControls.HtmlForm

    'NOTE: The following placeholder declaration is required by the Web Form Designer.
    'Do not delete or move it.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        InitializeComponent()
    End Sub

#End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
    End Sub

    Protected Function GetIMStockReportURL() As String
        Dim strURL As String = "IMStockReport.aspx?teid={2}&ownerid=-2&showfob=1&cpid={0}&qty={1}&sort={3}&countryid={4}"
        Dim result As String = "IMStockReport.aspx?teid=-1&ownerid=-2&showfob=1&cpid=0"
        Dim params As New Common.IMStockReportParams

        If Not Session("IMStockReportParams") Is Nothing Then
            params = DirectCast(Session("IMStockReportParams"), Common.IMStockReportParams)
            result = String.Format(strURL, params.ConPointID, params.Quantity, params.TerritoryId, params.IDSSort, params.CountryId)
        End If

        Return String.Format("<a href={0} > Back to IDS </a>", result)
    End Function

End Class
